package com.alili_tv.system.service.impl;

import com.alili_tv.system.entity.VideoRank;
import com.alili_tv.system.mapper.VideoRankMapper;
import com.alili_tv.system.service.VideoRankService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class VideoRankServiceImpl extends ServiceImpl<VideoRankMapper, VideoRank> implements VideoRankService {

    @Resource
    private VideoRankMapper videoRankMapper;
    @Override
    public List<VideoRank> getIncrYesterday(LocalDateTime now) {
        return videoRankMapper.getIncrYesterday(now);
    }

    @Override
    public List<VideoRank> getIncrAtOneDay(LocalDateTime oneDay) {
        return videoRankMapper.getIncrAtOneDay(oneDay);
    }
}
